/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.finance.api.constant;

import lombok.Getter;

/**
 * The enum Finance queue enum.
 *
 * @description: 消息队列枚举配置
 * @author: alan
 * @date: 2019 /11/30 9:04
 */
@Getter
public enum FinanceQueueEnum {
    /**
     * 订单已支付
     */
    QUEUE_ORDER_PAYED(FinanceConstant.EXCHANGE_NAME, FinanceQueueNameConstant.ORDER_PAYED, ""),
    /**
     * 订单已签收
     */
    QUEUE_ORDER_RECEIPT(FinanceConstant.EXCHANGE_NAME, FinanceQueueNameConstant.ORDER_RECEIPT, ""),
    /**
     * 完成订单
     */
    QUEUE_ORDER_COMPLETED(FinanceConstant.EXCHANGE_NAME, FinanceQueueNameConstant.ORDER_COMPLETED, ""),
    //================================控制台模块==========================================================================
    /**
     * 初始化订单设置
     */
    QUEUE_DATA_INIT(FinanceConstant.ACCOUNT_EXCHANGE, FinanceQueueNameConstant.DATA_INIT, "gruul.finance.data.init"),


    ;
    /**
     * 交换名称
     */
    private String exchange;
    /**
     * 队列名称
     */
    private String name;
    /**
     * 路由键
     */
    private String routeKey;

    FinanceQueueEnum(String exchange, String name, String routeKey) {
        this.exchange = exchange;
        this.name = name;
        this.routeKey = routeKey;
    }

}
